//
//  GRJSDCAlertViewViewController.m
//  GRJTolCayFrwk
//
//  Created by 易上云 on 2017/3/13.
//  Copyright © 2017年 Global Barter. All rights reserved.
//

#import "GRJSDCAlertViewViewController.h"

//#import "GRJTolCayFrwk-Swift.h"

@interface GRJSDCAlertViewViewController ()

@end

@implementation GRJSDCAlertViewViewController


- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.title = @"SDCAlertView";
    
    NSArray *array = @[@"样式一",@"样式二",@"样式三",@"样式四",@"样式五"];
    
    for (int i=0; i<array.count; i++) {
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        button.frame = CGRectMake(i * (self.view.bounds.size.width/array.count), 100, self.view.bounds.size.width/array.count, 44);
        button.tag = i+99;
        
        [button setTitle:array[i] forState:UIControlStateNormal];
        [button setBackgroundColor:[UIColor grayColor]];
        [button addTarget:self action:@selector(regexKitLiteButtonClick:) forControlEvents:UIControlEventTouchUpInside];
        
        [self.view addSubview:button];
    }
}

-(void)regexKitLiteButtonClick:(UIButton *)sender{
    if (sender.tag == 99) {
        
        
        
        
    }else if(sender.tag == 100) {
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
